'use strict';

module.exports = function collectSameElements(collectionA, objectB) {
  let arr=new Array();
  for(let i of collectionA)
  for(let j of objectB.value)
  {
    if(i.key==j)
    arr.push(i.key);


  }return arr;

 


 
}
